﻿#ifndef FRMAIN_H
#define FRMAIN_H

#include <QWidget>
#include "head.h"
#include "sendsensortvr.h"
#include "senddirectiondlg.h"
#include "recvsensitivedlg.h"
#include "recvdirectiondlg.h"

QT_BEGIN_NAMESPACE
namespace Ui { class FrMain; }
QT_END_NAMESPACE

class FrMain : public QWidget
{
    Q_OBJECT

public:
    FrMain(QWidget *parent = nullptr);
    ~FrMain();

    int m_Width;
    int m_titleHeight;
    int m_totleHeight;

    QPushButton* btnClose;
    QPushButton* btnMin;
    QPushButton* btnSetup;
    QLabel*     lbTitleText;


    QVector<double> sv1;
    QVector<double> freq1;

    QVector<double> sv3;
    QVector<double> freq3;

    void initForm();
    void initButton();
    void initTitleText(QString str);
    void initTabWidget();

    void initCustomplot1();
    void initCustomplot2();
    void initCustomplot3();
    void initCustomplot4();

    void initTab1();
    void initTab2();
    void initTab3();
    void initTab4();

protected:
    virtual void paintEvent(QPaintEvent*);

private:
    Ui::FrMain *ui;

public slots:
    void btnMenu_Close_clicked();
    void btnMenu_Min_clicked();

    void btnStart_clicked();
    void btnStart2_clicked();
    void btnStart3_clicked();
    void btnStart4_clicked();

};
#endif // FRMAIN_H
